<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/7/26 0026
 * Time: 20:00
 */

namespace app\api\controller;

use framework\library\Controller;
use app\common\service\Test;
use framework\library\Facade\Log;

class TestController extends Controller
{
    protected $noLogin = [];

    public function test()
    {
        $testService = new Test();
        var_dump(get_class($testService));
    }

    public function testRoute()
    {
        $user = [
            "id" => 1,
            "name" => "北桥苏",
            "nickname" => "dejd#feedef1221#$#edsdd@#!@#"
        ];
        return $user;
    }

    public function testFacade()
    {
        return Log::test(123);
    }

}